package sz.com.postoffice.jxyzwgcase.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import sz.com.postoffice.jxyzwgcase.pojo.ConstantDb;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author ycwu
 * @date 2020-12-15 17:56
 */
public interface ConstantDbService {
    /**
     * 获取常量值
     *
     * @return
     */
    List<ConstantDb> getConstantDbs();

    /**
     * 刷新常量值
     *
     */
    void freshConstantDbs();

    /**
     * 返回model数据配置（key是type，value是field）
     * @param model
     * @return
     */
    public Map<String, String> findByModel(String model);
}
